<?php
require_once('../smarty_admin.php');

$sql = "select * from catalogs";



$data_catalog = array();
$data_catalog = $dbobject->query($sql,MYSQL_ASSOC);

$catalog_id = 0;
$data_thongin=array();
if (array_key_exists('catalog_id',$_GET)) 
//if (isset($_GET['catalog_id']))
{	
	$catalog_id = trim($_GET['catalog_id']);
	
	$sql_thongtin= "SELECT * FROM thongtins WHERE catolog_id = '".$catalog_id."'";
	$data_thongin = $dbobject->query($sql_thongtin,MYSQL_ASSOC);
	
}	
$smarty->assign('catalog_id', $catalog_id);
$smarty->assign('data_thongtin',$data_thongin);
$smarty->assign('data_catalog', $data_catalog);
$smarty->display('thongtin/thongtin.tpl');
?>


